package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 * @author hua
 * @since 2022-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_product_out_record")
public class ProductOutRecordDo extends Model<ProductOutRecordDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

//    @TableField("order_id")
//    private Long orderId;


    @TableField("stock_id")
    private Long stockId;

    @TableField("out_id")
    private Long outId;

    @TableField("type")
    private String type;

    @TableField("quantity")
    private Integer quantity;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
